using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DynamicExcelImportWebControl;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ResultsPanel.Visible = false;
    }

    protected void ExcelImportControl1_Submit(object sender, ExcelImportControl.ExcelImportControlSubmitEventArgs e)
    {
        //Show submitted data in a 2D comma seperated list
        string result = "";
        for (int i = 0; i < e.Data.Length; i++)
        {
            result += string.Join(",", e.Data[i]) + "<br/>\n";
        }
        Label1.Text = result;
        ResultsPanel.Visible = (result.Length > 0);
    }
}
